package org.game.module.chatbo;

import com.sojoys.artifact.exception.AbstractLogicModelException;
import com.sojoys.artifact.factory.session.ISession;
import com.sojoys.artifact.core.IModule;
/** 
 * 聊天
 */
public interface ChatBO extends IModule {
	byte classCode = 9;
	
	/** 发送聊天 [code = 2305] */
	short sendChatMsg = 2305; 
	/** 推送聊天信息 [code = 2306] */
	short pushChatMsg = 2306; // 推送类型
	/** 更换房间 [code = 2307] */
	short changeRoom = 2307; 
	/** 取得初始聊天信息(一般只是登陆时请求) [code = 2311] */
	short getInitChatInfo = 2311; 
	
	
	/** 发送聊天 [code = 2305] */
	byte[] sendChatMsg(ISession session, org.game.protobuf.c2s.C2SChatMsg.ChatMsg msg) throws AbstractLogicModelException;
	
	
	/** 更换房间 [code = 2307] */
	byte[] changeRoom(ISession session, org.game.protobuf.c2s.C2SChatMsg.ReqChangeRoom changeRoom) throws AbstractLogicModelException;
	
	/** 取得初始聊天信息(一般只是登陆时请求) [code = 2311] */
	byte[] getInitChatInfo(ISession session, org.game.protobuf.c2s.C2SChatMsg.ReqInitChatInfo req) throws AbstractLogicModelException;
	
}